<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>对象</title>
	<script type="text/javascript">
		function yizi () {
			this.width='50cm';
			this.color='red';
			this.zuoren = function  () {
				alert("可以坐人");
			}
		}

		var obj  = new yizi();

		alert(obj.width='100cm');
		obj.zuoren();


		var obj = new Object();
		obj.name='24234';
		obj.sex='132';
		obj.run = function  (argument) {
			alert('run');
		}


		obj.run();

	</script>
</head>
<body>
	
</body>
</html>